<html>
 <head>
 <script> 
function getFullPath(obj) 
{ 
    if(obj) 
    { 
        //ie 
        if (window.navigator.userAgent.indexOf("MSIE")>=1) 
        { 
            obj.select(); 
            obj.blur();
            return document.selection.createRange().text; 
        } 
        return obj.value; 
    } 
}
 </script>
 </head>
 <body>
     <form action="report" method="post" >
      文件<input type="file" name="reportPath"  onchange="document.getElementById('reportName').value=getFullPath(this);"><br>
        <input type="text" name="reportName" id="reportName" value=""><br>
     </form>
 </body>
 </html>